package site.qjdb.pojo;

import java.util.Date;

/**
 * 	通知
 * 
 * */
public class Notice {
	/**
	 * 通知类型 
	 * 1x：回复我的 
	 * 	10：回复我的商品 
	 * 	11：回复我的留言 
	 * 	12：回复我的求购信息 
	 * 2x：收到的赞 
	 * 	20：赞了我的留言 
	 * 	21：赞了我的求购信息
	 * 3x：求购信息 
	 * 	30：发布了新的求购信息
	 * 
	 */
	private Integer type;
	private Integer nid; // 通知id
	private Integer uid; // 接收用户id
	private Integer commentId; // 对应的留言id
	private Integer rid; // 对应的回复id
	private Integer wid; // 对应的求购id
	private Integer isNew; // 是否为新通知，0：不是，1：是
	private Integer isDel; // 是否删除，0：未删除，1：已删除
	private Date time; // 生成时间
	private Integer otherUid; // 当类型是点赞时设置该属性，其他情况不用设置
	private NoticeItem noticeItem; // 对应的实体类

	public Notice() {
	}

	public Integer getNid() {
		return nid;
	}

	public void setNid(Integer nid) {
		this.nid = nid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getCommentId() {
		return commentId;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	public Integer getRid() {
		return rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	public Integer getWid() {
		return wid;
	}

	public void setWid(Integer wid) {
		this.wid = wid;
	}

	public Integer getIsNew() {
		return isNew;
	}

	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public NoticeItem getNoticeItem() {
		return noticeItem;
	}

	public void setNoticeItem(NoticeItem noticeItem) {
		this.noticeItem = noticeItem;
	}

	public Integer getOtherUid() {
		return otherUid;
	}

	public void setOtherUid(Integer otherUid) {
		this.otherUid = otherUid;
	}

	@Override
	public String toString() {
		return "Notice [type=" + type + ", nid=" + nid + ", uid=" + uid + ", commentId=" + commentId + ", rid=" + rid
				+ ", wid=" + wid + ", isNew=" + isNew + ", isDel=" + isDel + ", time=" + time + ", otherUid=" + otherUid
				+ ", noticeItem=" + noticeItem + "]";
	}

}
